#include "junix.h"
using namespace std;

struct A
{
	public:
		A(int i):n(i){ }

	protected:
		int n;
};

struct B:A
{
	B(int i):A(i){ }
	void print()
	{
		cout<<n<<endl;
	}
};

int main(int argc, char **argv)
{
	A a(100);
//	cout<<a.n<<endl;

	B b(9990);
	b.print();
//	cout<<b.n<<endl;
}
